<div ms-controller="contestProblemList" class="col-md-9">
    <nav>
        <ul class="pager">
            <li class="previous" ms-click="goBack()"><a href="javascript:void(0)">
                <span aria-hidden="true">&larr;</span> 返回</a>
            </li>
        </ul>
    </nav>
    <h1>比赛题目列表</h1>
    <div>
    <button class="btn btn-primary" ms-click="addProblem()">创建题目</button>
        </div>
    <table class="table table-striped">
        <tr>
            <th>ID</th>
            <th>题目</th>
            <th>创建时间</th>
            <th>可见</th>
            <th>通过次数/提交总数</th>
            <td></td>
        </tr>
        <tr ms-repeat="problemList">
            <td>{{ el.sort_index }}</td>
            <td>{{ el.title }}</td>
            <td>{{ el.create_time|date("yyyy-MM-dd HH:mm:ss")}}</td>
            <td ms-text="el.visible?'可见':'不可见'"></td>
            <td>{{ el.total_accepted_number }}/{{ el.total_submit_number }}</td>
            <td>
                <button class="btn-sm btn-info" ms-click="showEditProblemPage(el.id)">编辑</button>
                <button class="btn-sm btn-primary" ms-if="!el.is_public && adminType == 2 && el.visible" ms-click="makeProblemPublic(el)">公开</button>
            </td>
        </tr>
    </table>
</div>
<script src="/static/js/app/admin/contest/contestProblemList.js"></script>